package cn.rengy.web.framework.sys;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.rengy.web.framework.id.IdGenerator;

@Controller
@RequestMapping
public class IdGeneratorController {
	@Autowired
	private IdGenerator idGenerator;
	
	@RequestMapping(value="/authenticated/idGenerator/get")
	@ResponseBody
    public String get(){
		return idGenerator.generateId().toString();
	}
}
